﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsInspectHouse _iCsInspectHouse = null;
        /// <summary>
        /// 获取ICsInspectHouse实现业务的实例
        /// </summary>
        /// <returns>IConfig</returns>
        public static ICsInspectHouse CreateCsInspectHouse()
        {
            if (_iCsInspectHouse == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.CsInspectHouse";
                _iCsInspectHouse = (ICsInspectHouse)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsInspectHouse;
        }
    }



    public interface ICsInspectHouse
    {
        /// <summary>
        /// 获取乐天系统中的验房单空DataTable
        /// </summary>
        /// <returns></returns>
         DataTable GetInspectHouseDataFromRoadTeamSystem();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dt"></param>
        /// <returns></returns>
         bool InsertInspectHouseDataToRoadTeamSystem(DataTable dt);

         /// <summary>
         /// 根据APP编号获取对接系统中的收楼维修单ID
         /// </summary>
         /// <param name="Identifier">APP编号</param>
         /// <returns></returns>
         DataRow GetInspectHouseIDFromSystem(String Identifier);


    }
}
